FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/ubuntu:22.04

COPY sources.list /etc/apt/sources.list
RUN apt update && apt dist-upgrade -y
RUN apt install -y python3 python3-pip
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple docxcompose fastapi uvicorn python-multipart

WORKDIR /root/app

VOLUME /root/app
EXPOSE 8000

CMD uvicorn main:app --reload --host 0.0.0.0

